package com.ztsoft.user.mapper.dynamic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ztsoft.user.pojo.entity.dynamic.ColumnDescription;
import com.ztsoft.user.pojo.vo.dynamic.ColumnDescriptionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ColumnDescriptionMapper extends BaseMapper<ColumnDescription> {

    //获取排序最大值
    int getMaxSequence(@Param("tableCode") String tableCode, @Param("deptId") String deptId);

    List<ColumnDescriptionVo> selectColumnDescriptionVo(@Param("tableCode") String tableCode, @Param("deptId") String deptId);

    List<String> getIdsByRoleIdRemoveRowId(ColumnDescription columnDescription);

    List<String> getRawIdsByRoleId(ColumnDescription columnDescription);

    List<ColumnDescription> queryIds(List<String> ids);
}
